-- GENERATED SPELL FOR [Apprentice Kryten] --


function spell0_2788(pUnit, Event) --@Enchant Azure Agate,Self--
pUnit:FullCastSpellOnTarget(4319,pUnit)
pUnit:RegisterEvent('Sorts_2788', 599, 1)
end

function Sorts_2788(pUnit, Event)
local choix_sorts_2788 = math.random(0, 0)
if choix_sorts_2788 == 0 then
pUnit:RegisterEvent('spell0_2788', 1, 1)
end
end

function mob2788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2788', math.random(1500, 3000), 1)
end

function mob2788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2788, 1, 'mob2788_Action')
RegisterUnitEvent(2788, 2, 'mob2788_Leave')
RegisterUnitEvent(2788, 3, 'mob2788_Kill')
RegisterUnitEvent(2788, 4, 'mob2788_Die')
